home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 2
/
SPACE - Library 2 - Volume 1.iso
/
music
/
87
/
c
/
getenv.c
< prev
next >
Wrap
Text File
|
1986-12-19
|
384b
|
26 lines
#include <basepage.h>
char *getenv(S)
char *S;
{char *T, *U;
BASEPAGE *P;
P=BP;
T=(char *)(P->p_env);
while ((*T)!=0)
{U=S;
while((*T)==(*U))
{T++;
U++;
}
if ((*T)=='='&&(*U)==0)
{if (*(++T)==0)
T++;
return T;
}
if ((*T)!=0)
{while ((*(T++))!=0);
} else
T++;
}
return NULL;
}əəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəə